'''
序列作业
'''

print('---------------------------')

charset = 'Hello Python'
charset2 = 'let\'s go'
charset3 = '\"The Zen of Python\" -- by Tim Peters'
print('_________________________')
print('|\t\t\t\t\t\t|\n|\t  %s\t\t|\n|_______________________|' %charset)
print('\n%s' %charset2)
print('\n%s' %charset3)

print('---------------------------')
a = 'xyz'
b = 'abc'
print(a+b)
print((a[1],a[2]))
i = 0
while True:
    print(b)
    i += 1
    if i>=100:
        break
for i in a+b:
    if i=='a':
        print("该字符串中有字符a")
    continue

print('---------------------------')
list=[1,2,3,4,5]
list.append(100)
print(list)
list.remove(1)
print(list)
print(list[0:3])
print(list[-1])

print('---------------------------')
tuple=(1,2,3,4,5)
print(tuple[-2])
tuple2=(1,)
tuple3 = tuple.__add__(tuple2)
print(tuple3)
print(len(tuple3))

